package com.fengye.validation.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class User {
    @NotBlank(message = "{user.username.notblank}")
    private String username;

    @NotNull(message = "{user.password.notnull}")
    private String password;


    @NotNull(message = "user.age.notnull")
    private String age;

    // other fields and methods
}
